(() => {
  let p = { x: 1, y: 2 };

  function formatPoint(point: typeof p) {
    console.log(point);
  }
  formatPoint({ x: 12, y: 45 });

  let num: typeof p.x;
})();
